
<div *ngIf="comment">
    <h2><span jhiTranslate="studyng6App.comment.detail.title">Comment</span> {{comment.id}}</h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span jhiTranslate="studyng6App.comment.commentTime">Comment Time</span></dt>
        <dd>
            <span>{{comment.commentTime | date:'medium'}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.comment.commentator">Commentator</span></dt>
        <dd>
            <span>{{comment.commentator}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.comment.comment">Comment</span></dt>
        <dd>
            <span>{{comment.comment}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.comment.pComment">P Comment</span></dt>
        <dd>
            <span>{{comment.pComment}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.comment.content">Content</span></dt>
        <dd>
            <span>{{comment.content}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.comment.bookId">Book Id</span></dt>
        <dd>
            <div *ngIf="comment.bookId">
                <a [routerLink]="['/book-basic', comment.bookId?.id]">{{comment.bookId?.id}}</a>
            </div>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'comment/'+ comment.id + '/edit'} }]"
            replaceUrl="true"
            queryParamsHandling="merge"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
    </button>
</div>
